[INFO] cloning repository https://github.com/smarion2/Hal-Ai
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smarion2/Hal-Ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d4af0edcc5786e911398844b5a1c56585904285b
[INFO] building smarion2/Hal-Ai against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmarion2%2FHal-Ai" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/smarion2/Hal-Ai on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/smarion2/Hal-Ai
[INFO] finished tweaking git repo https://github.com/smarion2/Hal-Ai
[INFO] tweaked toml for git repo https://github.com/smarion2/Hal-Ai written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/smarion2/Hal-Ai already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 85b55420a9068285c9cf210425ac7e29ec383ea53ebac3e3435ee4694b325bb1
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "85b55420a9068285c9cf210425ac7e29ec383ea53ebac3e3435ee4694b325bb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "85b55420a9068285c9cf210425ac7e29ec383ea53ebac3e3435ee4694b325bb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "85b55420a9068285c9cf210425ac7e29ec383ea53ebac3e3435ee4694b325bb1", kill_on_drop: false }`
[INFO] [stdout] 85b55420a9068285c9cf210425ac7e29ec383ea53ebac3e3435ee4694b325bb1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 95781cc3b93d8dfa43f15bf755b4192ff1d476df1581513cd694f1bbafcc3139
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "95781cc3b93d8dfa43f15bf755b4192ff1d476df1581513cd694f1bbafcc3139", kill_on_drop: false }`
[INFO] [stderr]    Compiling rand_core v0.2.2
[INFO] [stderr]    Compiling rand v0.5.5
[INFO] [stderr]    Compiling my_bot v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: mismatched closing delimiter: `}`
[INFO] [stdout]    --> src/hlt/game_map.rs:150:9
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let zone_radius = if self.width < 33 {
[INFO] [stdout]     |                                              - closing delimiter possibly meant for this
[INFO] [stdout] 149 |             (3i32
[INFO] [stdout]     |             - unclosed delimiter
[INFO] [stdout] 150 |         } else if self.width < 50 {
[INFO] [stdout]     |         ^ mismatched closing delimiter
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: mismatched closing delimiter: `)`
[INFO] [stdout]    --> src/hlt/game_map.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         } else if self.width < 50 {
[INFO] [stdout]     |                                   - unclosed delimiter
[INFO] [stdout] 151 |             4i32)
[INFO] [stdout]     |                 ^ mismatched closing delimiter
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found `}`
[INFO] [stdout]    --> src/hlt/game_map.rs:151:18
[INFO] [stdout]     |
[INFO] [stdout] 151 |             4i32)
[INFO] [stdout]     |                  ^ help: add `;` here
[INFO] [stdout] 152 |         } else if self.width < 70 {
[INFO] [stdout]     |         - unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-item in item list
[INFO] [stdout]    --> src/hlt/game_map.rs:152:11
[INFO] [stdout]     |
[INFO] [stdout] 18  | impl GameMap {
[INFO] [stdout]     |              - item list starts here
[INFO] [stdout] ...
[INFO] [stdout] 152 |         } else if self.width < 70 {
[INFO] [stdout]     |           ^^^^ non-item starts here
[INFO] [stdout] ...
[INFO] [stdout] 220 | }
[INFO] [stdout]     | - item list ends here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope
[INFO] [stdout]   --> src/main.rs:88:32
[INFO] [stdout]    |
[INFO] [stdout] 88 |                 let drop_pos = best_dropoffs[drop_id.parse::<usize>().unwrap()];
[INFO] [stdout]    |                                ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope
[INFO] [stdout]    --> src/main.rs:140:29
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 for i in 0..best_dropoffs.len() {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `best_dropoffs` in this scope
[INFO] [stdout]    --> src/main.rs:141:86
[INFO] [stdout]     |
[INFO] [stdout] 141 |                     let distance = game.game_map.calculate_distance(&ship.position, &best_dropoffs[i]);
[INFO] [stdout]     |                                                                                      ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `best_dropoff`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hlt::input::Input`
[INFO] [stdout]  --> src/hlt/game_map.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use hlt::input::Input;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hlt::map_cell::Structure`
[INFO] [stdout]  --> src/hlt/game_map.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use hlt::map_cell::Structure;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/hlt/game_map.rs:29:38
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn at_entity(&self, entity: &Entity) -> &MapCell {
[INFO] [stdout]    |                                      ^^^^^^ help: use `dyn`: `dyn Entity`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/hlt/game_map.rs:33:46
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn at_entity_mut(&mut self, entity: &Entity) -> &mut MapCell {
[INFO] [stdout]    |                                              ^^^^^^ help: use `dyn`: `dyn Entity`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]    --> src/hlt/game_map.rs:149:13
[INFO] [stdout]     |
[INFO] [stdout] 149 | /             (3i32
[INFO] [stdout] 150 | |         } else if self.width < 50 {
[INFO] [stdout]     | |_________^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `generate` found for struct `GameMap` in the current scope
[INFO] [stdout]   --> src/hlt/game.rs:47:33
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let game_map = GameMap::generate(&mut input);
[INFO] [stdout]    |                                 ^^^^^^^^ function or associated item not found in `GameMap`
[INFO] [stdout]    | 
[INFO] [stdout]   ::: src/hlt/game_map.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct GameMap {
[INFO] [stdout]    | ------------------ function or associated item `generate` not found for this
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `generate`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `rand_core::block::BlockRngCore`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `update` found for struct `GameMap` in the current scope
[INFO] [stdout]   --> src/hlt/game.rs:94:23
[INFO] [stdout]    |
[INFO] [stdout] 94 |         self.game_map.update(input);
[INFO] [stdout]    |                       ^^^^^^ method not found in `GameMap`
[INFO] [stdout]    | 
[INFO] [stdout]   ::: src/hlt/game_map.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct GameMap {
[INFO] [stdout]    | ------------------ method `update` not found for this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0317]: `if` may be missing an `else` clause
[INFO] [stdout]    --> src/hlt/game_map.rs:150:16
[INFO] [stdout]     |
[INFO] [stdout] 150 |           } else if self.width < 50 {
[INFO] [stdout]     |  ________________^
[INFO] [stdout] 151 | |             4i32)
[INFO] [stdout]     | |_____________----^ expected `()`, found `i32`
[INFO] [stdout]     |               |
[INFO] [stdout]     |               found here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `if` expressions without `else` evaluate to `()`
[INFO] [stdout]     = help: consider adding an `else` block that evaluates to the expected type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/hlt/game_map.rs:146:49
[INFO] [stdout]     |
[INFO] [stdout] 146 |     pub fn find_suitable_dropoffs(&mut self) -> Position {
[INFO] [stdout]     |            ----------------------               ^^^^^^^^ expected struct `Position`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors; 5 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0425, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my_bot`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "95781cc3b93d8dfa43f15bf755b4192ff1d476df1581513cd694f1bbafcc3139", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "95781cc3b93d8dfa43f15bf755b4192ff1d476df1581513cd694f1bbafcc3139", kill_on_drop: false }`
[INFO] [stdout] 95781cc3b93d8dfa43f15bf755b4192ff1d476df1581513cd694f1bbafcc3139
